package com.zld.smarket.result;

//封装响应的数据
public class ResponseData extends Response{
    private Object data;

    private Long count;

//    return  new ResponseData(ExceptionMsg.SUCCESS,data);
    public ResponseData(String code, String msg, Object data) {
        super(code, msg);
        this.data = data;
    }

    public ResponseData(Object data, Long count){
        this.data = data;
        this.count = count;
    }


    public ResponseData(Object data) {
        this.data = data;
    }

    public ResponseData(ExceptionMsg exceptionMsg) {
        super(exceptionMsg);

    }

    public ResponseData(ExceptionMsg exceptionMsg, Object data) {
        super(exceptionMsg);
        this.data = data;
    }

    public ResponseData(String code, Object data) {
        super(code);
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }
}
